package com.ocm.tourism.core.dao;

import java.util.List;

import com.ocm.tourism.core.domain.Participant;
import com.ocm.tourism.core.model.SearchCriteria;

public interface ParticipantDao extends GenericDao<Participant> {

   List<Participant> findAll(int firstResult, int maxResults);

   Long count();
   
   boolean hasParticipant(String username);

   Participant findByUserName(String username);

   List<Participant> findParticipants(SearchCriteria searchCriteria, int firstResult,int maxResults);
}
